package com.yushixin.account.repository;

import com.yushixin.account.model.Account;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 账户数据访问类
 */
@Repository
public interface IAccountRepository extends JpaRepository<Account, Long> {
    
    /**
     * 按用户名查询
     * @param username 用户名
     */
    Account findAccountByUsername(String username);
}
